package com.itheima.reggie.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.itheima.reggie.common.ResultInfo;
import com.itheima.reggie.domain.Employee;

import java.util.List;

public interface EmployeeMapper extends BaseMapper<Employee> {
//登录
    Employee findByName(String username);
//根据username查询
    List<Employee> findByUsername(String name);
//新增人员
    void  save(Employee employee);
//修改查询
    Employee findById(Long id);
//修改
    void update(Employee employee);
}
